package com.yc.jiushujie.jsj_order.controller;


import com.yc.jiushujie.entity.JsjSchool;
import com.yc.jiushujie.jsj_order.mapper.JsjSchoolMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 无罪
 * @since 2022-08-03
 */
@RestController
@RequestMapping("/jiushujie/jsjSchool")
public class JsjSchoolController {

    @Resource
    JsjSchoolMapper jsjSchoolMapper;

    //查询所有学校
    @GetMapping("queryschool")
    List<JsjSchool> queryAll(){
        return jsjSchoolMapper.selectList(null);
    }

//    //按省份查学校
//    @GetMapping("querySchoolByProvince")
//    public List<JsjSchool> findSchoolByProvince(@RequestParam String province){
//        return jsjSchoolMapper.selectSchoolByProvince(province);
//    }





}

